import request from '@/utils/request'


export function goodsType(data) {
  return request({
    url: `/goods/type`,
    method: 'post',
    data
  })
}

export function goodsTypeList(params) {
  return request({
    url: `/goods/type/list`,
    method: 'get',
    params
  })
}

export function goodsTypeDetele(goodsTypeIds) {
  return request({
    url: `/goods/type/${goodsTypeIds}`,
    method: 'delete'
  })
}

export function goodsTypeDetails(goodsTypeId) {
  return request({
    url: `/goods/type/${goodsTypeId}`,
    method: 'get'
  })
}
export function goodsTypeEdit(data) {
  return request({
    url: `/goods/type`,
    method: 'put',
    data
  })
}
